a = [1,2,3,-10,4,5,6,-5,7,8,9,10]
b = []
for i in a:
    if abs(i) >= 5 :
        i = i**2
    else:
        i = abs(i)
    b.append(i)
print(b)